use crate::loopLink::Link;

pub fn yue_se_fu_huan(n: i32, m: i32) {
    if n == 0 || m == 0 {
        return;
    } else {
        let vec: Vec<i32> = (1..=n).collect();
        let mut link = Link::new();

        link.create_by_rear(vec);

        link.display();

        link.yuesefuhuan(n, m);
    }
}